# -*- coding: utf-8 -*-
# @Time    : 2020/5/27 11:40
# @Author  : xiao

from airtest.core.api import *
from basic.UIParent import UIParent
from commen.page.ann.esPage import esPage
from commen.page.ann.indexPage import IndexPage



class esCases(UIParent):


    @classmethod
    def test_es_cheng(self):
        '''搜索联想功能校验'''
        IndexPage.clickSearch()
        esPage.inputWorld(self,'城')
        lenResulte=esPage.getResultsList()
        assert_equal(lenResulte>4,True,"搜索结果数量是否少于4")



